SftTree/OCX 7.0

SftTree.PrevSibling Property

Softel vdm, Inc.

Returns the index of an item's previous sibling item.

Deprecated - Provided for compatibility with earlier versions only - Use Item.PrevSibling instead

Syntax       

Get

VB.NET

SiblingIndex = object.get_PrevSibling(ByVal ItemIndex As Integer)  As Integer

VB

SiblingIndex = object.PrevSibling(ByVal ItemIndex As Long)  As Long

C#.NET

int SiblingIndex = object.get_PrevSibling(int ItemIndex);

VC++

long SiblingIndex = object->PrevSibling[long ItemIndex];
long SiblingIndex = object->GetPrevSibling(long ItemIndex);

C

HRESULT object->get_PrevSibling(long ItemIndex, long* SiblingIndex);

Delphi

SiblingIndex := object.PrevSibling[ItemIndex : Integer]   : Integer;

object

A SftTree object.

ItemIndex

The zero-based index of the item whose previous sibling item is to be returned.

SiblingIndex

Returns the index of the item's previous sibling item.  -1 is returned if the item doesn't have a previous sibling.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.PrevSibling instead

The PrevSibling property returns the index of an item's previous sibling item.

The previous sibling of item ItemIndex is found by scanning towards the beginning of the tree control and locating an item on the same level (Item.Level property) as item ItemIndex without encountering a parent item.

The Item.NextSibling property can be used to retrieve an item's next sibling.  The Item.FirstSibling and Item.LastSibling properties can be used to retrieve an item's first or last sibling.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com